#import <Foundation/Foundation.h>


#import "Engine.h"
#import "Tire.h"
#import "Car.h"
#import "AllWeatherRadial.h"


int main (int argc, const char * argv[]) 
{
    Car *car = [ [Car alloc] init];
    
    //generate 4 tires..
    for (int i=0; i<4; ++i) 
    {
        Tire *tire = [ [AllWeatherRadial alloc] init ]; //create special tires
        [car setTire:tire atIndex:i]; //Assign new tire to car
        
        [tire release]; //CleanUp: Memory Mgmt
    }
    
    Engine *engine = [ [Engine alloc] init ]; //create engine
    [car setEngine:engine]; //Assign new engine to car
    
    [car print];
    
    [car release]; //CleanUp: Memory Mgmt
    
    return 0;
}
